#include <d3d9.h>
#include<d3dx9.h>
#pragma comment (lib,"d3dx9.lib")
#pragma comment (lib,"d3d9.lib")
#include<string>
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 600
class Graphic
{
public:
	LPDIRECT3D9 sm_d3d;
	LPDIRECT3DDEVICE9 sm_d3d_device;
	D3DPRESENT_PARAMETERS sm_d3d_pp;
	LPD3DXSPRITE sm_spritebacth;
	Graphic();
	bool  InitDevice(HWND);
	LPDIRECT3D9 GetD3D();
	LPDIRECT3DDEVICE9 GetDevice();
	D3DPRESENT_PARAMETERS GetD3DPP();
	void Release();
	void BeginRender();
	void EndRender();

};

